<link rel="stylesheet" href="/style/jmdf.css" media="all">
<#setting number_format="#.##">
<table border="2" style="width: 98%;border-color: white;text-align: center;color: white;font-size: 23px;margin-top: 60px">
    <thead>
    <tr>
        <th rowspan="2" width="19%">小区名称</th>
        <th rowspan="2" width="12%">户型</th>
        <th colspan="2" width="23%">总数</th>
        <th colspan="2" class="jmdf-color-red" width="23%">已选</th>
        <th colspan="2" class="jmdf-color-green" width="23%">剩余</th>
    </tr>
    <tr>
        <th width="10%">套数</th>
        <th width="15%">面积</th>
        <th class="jmdf-color-red" width="10%">套数</th>
        <th class="jmdf-color-red" width="15%">面积</th>
        <th class="jmdf-color-green" width="10%">套数</th>
        <th class="jmdf-color-green" width="15%">面积</th>
    </tr>
    </thead>
    <tbody>
    <#if (houseHoldDataMap??)>
        <#assign allHouseTotal= 0/>
        <#assign allHouseAreaTotal= 0/>
        <#assign allChooseHouseTotal= 0/>
        <#assign allChooseHouseAreaTotal= 0/>
        <#assign allUnChooseHouseTotal= 0/>
        <#assign allUnChooseHouseAreaTotal= 0/>
        <#list houseHoldDataMap?keys as azProjectId>
            <#assign azProject=azProjectMap[azProjectId]/>
            <#assign itemMap=houseHoldDataMap[azProjectId]/>
            <#if (itemMap??)>
                <#assign itemMapLen=itemMap?size/>
                <#list itemMap?keys as houseHold>
                    <#assign dataMap=itemMap[houseHold]/>
                    <#assign allHouseTotal= allHouseTotal+dataMap["houseTotal"]/>
                    <#assign allHouseAreaTotal= allHouseAreaTotal+dataMap["houseAreaTotal"]/>
                    <#assign allChooseHouseTotal= allChooseHouseTotal+dataMap["chooseHouseTotal"]/>
                    <#assign allChooseHouseAreaTotal= allChooseHouseAreaTotal+dataMap["chooseHouseAreaTotal"]/>
                    <#assign allUnChooseHouseTotal= allUnChooseHouseTotal+dataMap["unChooseHouseTotal"]/>
                    <#assign allUnChooseHouseAreaTotal= allUnChooseHouseAreaTotal+dataMap["unChooseHouseAreaTotal"]/>
                    <tr>
                        <td>${(azProject.projectName)!}</td>
                        <td>${houseHoldMap[houseHold]}</td>
                        <td>${dataMap["houseTotal"]}</td>
                        <td>${dataMap["houseAreaTotal"]}</td>
                        <td class="jmdf-color-red">${dataMap["chooseHouseTotal"]}</td>
                        <td class="jmdf-color-red">${dataMap["chooseHouseAreaTotal"]}</td>
                        <td class="jmdf-color-green">${dataMap["unChooseHouseTotal"]}</td>
                        <td class="jmdf-color-green">${dataMap["unChooseHouseAreaTotal"]}</td>
                    </tr>
                </#list>
            </#if>
        </#list>
        <tr>
            <td colspan="2">合计</td>
            <td>${allHouseTotal}</td>
            <td>${allHouseAreaTotal}</td>
            <td class="jmdf-color-red">${allChooseHouseTotal}</td>
            <td class="jmdf-color-red">${allChooseHouseAreaTotal}</td>
            <td class="jmdf-color-green">${allUnChooseHouseTotal}</td>
            <td class="jmdf-color-green">${allUnChooseHouseAreaTotal}</td>
        </tr>
    </#if>
    </tbody>
</table>